//
//  main.m
//  宏定义抽取单例
//
//  Created by wenjim on 17/10/26.
//  Copyright © 2017年 WenJim. All rights reserved.
//

#import <Foundation/Foundation.h>

#import "Tools.h"

#import "Person.h"

int main(int argc, const char * argv[]) {
   
    
    Tools * t1 = [[Tools alloc] init]; // 内部会调用allocWithZone
    Tools * t2 = [Tools new];// [[alloc] init]  allocWithZone
    Tools * t3 = [Tools shareTools];
    
    Tools * t4 = [t3 copy];
    Tools * t5 = [t3 mutableCopy];
    
    NSLog(@"%p,%p,%p,  %p,%p",t1,t2,t3,t4,t5);

    
    
    Person * p = [Person sharePerson];
    Person * p1 = [Person sharePerson];
    Person * p2 = [Person sharePerson];
    
    NSLog(@"%p,%p,%p",p,p1,p2);
    
    return 0;
}
